package com.aibaixun.system.mapper;

import com.aibaixun.system.domain.DicmAddress;
import com.aibaixun.system.domain.PostureDevice;
import com.aibaixun.system.domain.dto.PostureDeviceDto;
import com.aibaixun.system.domain.vo.ExportDeviceVo;
import com.aibaixun.system.domain.vo.PostureDeviceVo;
import com.aibaixun.system.domain.vo.QueryCabinetSpaceVo;
import com.aibaixun.system.domain.vo.QueryDeviceTreeVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 架式设备 数据层
 *
 * @author zhangyh
 */
public interface PostureDeviceMapper extends BaseMapper<PostureDevice> {

    long checkPositionCount(@Param(value = "dto") PostureDeviceDto dto);

    List<QueryCabinetSpaceVo> getCabinetSpace();

    List<PostureDevice> queryByRoomId(@Param("cabinetId") String cabinetId);

    List<QueryDeviceTreeVo> queryDeviceList();

    DicmAddress queryDicmAddressByName(@Param("name") String name);

    List<ExportDeviceVo> queryDeviceAll();

    List<PostureDeviceVo> getDeviceList(@Param("query") PostureDeviceDto query);

    List<PostureDevice> queryDeviceListByCabinet(@Param("addressNameList") List<String> addressNameList);

}
